const BitSeparator = {
	thousand(value){
		const string1 = value.toString().replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => {
			return $1 + ",";
		});
		const string2 = value.toString().replace(/(\d)(?=(\d{3})+$)/g, ($0, $1) => {
			return $1 + ",";
		});
		return value && (value.toString().indexOf(".") !== -1 ? string1 : string2);
	}
}
export default BitSeparator;
